-
Notifications
You must be signed in to change notification settings - Fork 896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Shanghai in Reference Tests #4900
Conversation
Add support for Shanghai in reference tests * Add Shanghai and Cancun milestones * Add "withdrawals" and "withdrawalsRoot" to json objects * Migrate to schedule by block header. Signed-off-by: Danno Ferrin <[email protected]>
.../main/java/org/hyperledger/besu/ethereum/referencetests/BlockchainReferenceTestCaseSpec.java
Fixed
Show fixed
Hide fixed
Signed-off-by: Danno Ferrin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - I'm assuming the commented out lines will come in for withdrawals
@@ -175,6 +176,7 @@ public ReferenceTestBlockHeader( | |||
baseFee != null ? Wei.fromHexString(baseFee) : null, // baseFee | |||
Hash.fromHexString(mixHash), // mixHash | |||
Bytes.fromHexStringLenient(nonce).toLong(), | |||
// withdrawalsRoot == null ? Hash.EMPTY : Hash.fromHexString(withdrawalsRoot), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a TODO?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what withdrawals will do with it's code, once it's merged.
@@ -157,6 +157,7 @@ | |||
@JsonProperty("baseFeePerGas") final String baseFee, | |||
@JsonProperty("mixHash") final String mixHash, | |||
@JsonProperty("nonce") final String nonce, | |||
@JsonProperty("withdrawalsRoot") final String withdrawalsRoot, |
Check notice
Code scanning / CodeQL
Useless parameter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I've made a note to revisit these comments on the Withdrawals Epic: #4746
* Support Shanghai in Reference Tests Add support for Shanghai in reference tests * Add Shanghai and Cancun milestones * Add "withdrawals" and "withdrawalsRoot" to json objects * Migrate to schedule by block header. Signed-off-by: Danno Ferrin <[email protected]> * Add pending withdrawal code to test case spec Signed-off-by: Danno Ferrin <[email protected]> Signed-off-by: Danno Ferrin <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]> Signed-off-by: Sally MacFarlane <[email protected]>
* Support Shanghai in Reference Tests Add support for Shanghai in reference tests * Add Shanghai and Cancun milestones * Add "withdrawals" and "withdrawalsRoot" to json objects * Migrate to schedule by block header. Signed-off-by: Danno Ferrin <[email protected]> * Add pending withdrawal code to test case spec Signed-off-by: Danno Ferrin <[email protected]> Signed-off-by: Danno Ferrin <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]>
PR description
Add support for Shanghai in reference tests
Signed-off-by: Danno Ferrin [email protected]
Fixed Issue(s)
Documentation
doc-change-required
label to this PR ifupdates are required.
Changelog